from sqlalchemy.dialects.mysql import INTEGER, VARCHAR,JSON
from sqlalchemy import Column
from sqlalchemy.ext.declarative import declarative_base
Base = declarative_base()


# tunnel_sensor_original_data表结构
class TunnelSensorOriginalData(Base):
    __tablename__ = 'tunnel_sensor_original_data'

    id = Column(INTEGER, primary_key=True)
    line = Column(VARCHAR(256), nullable=False)
    create_time = Column(INTEGER)
    data = Column(JSON, nullable=False)
